<?php 
include("include/abstractdatabase.php");
include("include/clsprocess.php");
include("include/classproject.php");
include("include/login.php");
include("include/pzclass.php");
include("include/classuser.php");

	class facade
	{
		private $clsmsssql;
		private $clspzclass;
		private $clslogin;
		private $query;
		private $reseuft;

		public function __construct()
		{
			$this->clsmsssql = new process();
			$this->clsproject = new project();
			$this->clspiezometer = new piezometer();
			$this->clsuser = new queryuser();
		}
		
		public function Chklogin($usernames,$password)
		{
			$this->clslogin = new loginclass($usernames,$password);
		}
		
		public function gettabletype($table)
		{
			return $this->clsmsssql->querygettabletype($table);
		}
		
		public function getqueryalluser($table)
		{
			return $this->clsmsssql->queryalluser($table);
		}
		public function setadduser($useradd,$password,$FristName,$LastName,$PasswordQuestion,$PasswordAnswer,$Address,$typerole,
							 $mail,
							 $Mobile,
							 $projectlocaltion,
							 $Comment)
		{
			$this->clsmsssql->adduser();
		}
		
		public function getdatauseredit($id)
		{
			$this->clsmsssql->selectuseredit($id);
		}
		
		public function setupdateuser()
		{
			$this->clsmsssql->updateuser($id);
		}
		
		public function deluser($id)
		{
			
		}
		
		
		public function getdataproject()
		{
			
		}
		
		public function getviewallproject()
		{
			return $this->clsproject->viewallproject();
		}
		
		public function viewallrole()
		{
			return $this->clsuser->setroledata();
		}
		
		public function viewalltools($id)
		{
			return $this->clspiezometer->viewpz($id);
		}

	}

?>